<?php
use kartik\form\ActiveForm;
use yii\bootstrap\Html;
use wodrow\yii2wtools\tools\JsBlock;
use yii\helpers\Url;
use common\Tools;
use yii\widgets\LinkPager;
/**
 * @var \yii\web\View $this
 * @var $list array
 * @var $total int
 * @var $pagination \yii\data\Pagination
 * @var $model \fztadmin\modules\platform\models\searches\FundTransactionDetailsFilter
 */
?>

    <div>
        <div class="row">
            <div class="col-xs-12">
                <?php $form = ActiveForm::begin(['method' => "get"]); ?>
                <div class="row">
                    <div class="col-xs-6">
                        <?=$form->field($model, "begin_date")->textInput(['placeholder' => "YYYYMMDD"]) ?>
                    </div>
                    <div class="clearfix"></div>
                    <div class="col-xs-6">
                        <?=$form->field($model, "end_date")->textInput(['placeholder' => "YYYYMMDD"]) ?>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <?=Html::submitButton("筛选", ['class' => "btn btn-primary"]) ?>
                <?php ActiveForm::end(); ?>
            </div>
            <div class="col-xs-12">
                <table class="table table-bordered table-hover table-primary" style="margin-bottom: 0">
                    <thead>
                    <tr>
                        <th>资金流水号</th>
                        <th>资金方向</th>
                        <th>交易金额</th>
                        <th>余额</th>
                        <th>交易日期</th>
                        <th>备注</th>
                        <th>对手账号</th>
                        <th>对手账号名</th>
                        <th>交易类型</th>
                        <th>交易名</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($list as $k => $v): ?>
                        <tr>
                            <td><?=$v['transId'] ?></td>
                            <td>
                                <?=Yii::$app->fenZhangTong->getRespIESI111107TransTypeDesc()[$v['transType']] ?>
                            </td>
                            <td><?=$v['transAmt'] ?></td>
                            <td><?=$v['bal'] ?></td>
                            <td><?=$v['transTime'] ?></td>
                            <td><?=$v['remark'] ?></td>
                            <td><?=$v['peerAcct'] ?></td>
                            <td><?=$v['peerAcctNm'] ?></td>
                            <td><?=Yii::$app->fenZhangTong->getRespIESI111107BusinessTypeDesc()[$v['businessType']] ?></td>
                            <td><?=$v['businessName'] ?></td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>

            </div>
            <div class="col-xs-12">
                <?=LinkPager::widget([
                    'pagination' => $pagination,
                ]); ?>
            </div>
        </div>
    </div>

<?php JsBlock::begin(); ?>
    <script>
        $(function (){});
    </script>
<?php JsBlock::end(); ?>